// MplayerTestWindow.cs 
// User: mhull at 08:55 01/25/2008
//(c) 2007 Mike Hull
#if boobies
using System;
using Gtk;
using Gdk;

namespace Mplayer.Sample
{
	public partial class MplayerTestWindow : Gtk.Window
	{
		
		public MplayerTestWindow() : 
				base(Gtk.WindowType.Toplevel)
		{
			this.Build();
		}

		protected override void OnDestroyed ()
		{
			this.mplayerwidget2.Stop();
			base.OnDestroyed ();
		}		
		
		protected virtual void OnButton18Clicked (object sender, System.EventArgs e)
		{
			this.mplayerwidget2.Stop();
			try {
				this.mplayerwidget2.Play(this.comboboxentry1.ActiveText);
				this.comboboxentry1.AppendText(this.comboboxentry1.ActiveText);
			} catch (Exception ex) {
				System.Diagnostics.Trace.TraceError("Error playing {1}: {0}", ex, this.comboboxentry1.ActiveText);
			}
		}

		protected virtual void OnButton4Clicked (object sender, System.EventArgs e)
		{
			mplayerwidget2.Pause();
		}

		protected virtual void OnButton2Clicked (object sender, System.EventArgs e)
		{
			mplayerwidget2.IncreaseSpeed();
		}

		protected virtual void OnButton1Clicked (object sender, System.EventArgs e)
		{
			mplayerwidget2.DecreaseSpeed();
		}

		protected virtual void OnButton22Clicked (object sender, System.EventArgs e)
		{
			mplayerwidget2.SkipForward();
		}

		protected virtual void OnButton23Clicked (object sender, System.EventArgs e)
		{
			mplayerwidget2.SkipBackward();
		}

		protected virtual void OnButton355Clicked (object sender, System.EventArgs e)
		{
		}
	}
}
#endif